package org.xfy.ymcc.feign.fallback;

import feign.hystrix.FallbackFactory;
import org.xfy.common.result.JsonResult;
import org.xfy.ymcc.feign.CourseUserLearnFeignClient;

public class CourseUserLearnFeignClientFallbackFactory implements FallbackFactory<CourseUserLearnFeignClient> {
    @Override
    public CourseUserLearnFeignClient create(Throwable throwable) {
        return new CourseUserLearnFeignClient() {
            @Override
            public JsonResult getCourseUserLearn(Long loginId) {
                return JsonResult.error("getCourseUserLearn失败");
            }
        };
    }
}
